build: Do not eagerly disable checks on release builds
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 20 Feb 2018 13:19:31 +0000 (13:19 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 20 Feb 2018 13:22:01 +0000 (13:22 +0000)
commit88d419456d9897434365d9cab723cc7420791bc8
treec8105e4b26585423ee2d50020b95fcb4c437d24d
parenta7e96675bd29dda18436d70838ee49a399869f11
build: Do not eagerly disable checks on release builds

Release builds should only disable cast checks, to match what we used
to do back with the Autotools builds.

The Autotools build had an "--enable-debug=no" option, but that was
rarely used; Meson has debug, debugoptimized, release, and plain build
types, but we considered the "release" build types as the old "disable
all debugging code", which is not really accurate.

Disabling assertions and preconditon checks should be left to people
with constrained environments and/or packagers; they are supposed to
use the "plain" build type, and override the CFLAGS themselves.
meson.build